x86/traps: Lift all non-entrypoint logic in entry_int82() up into C
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 12 Apr 2017 16:40:32 +0000 (17:40 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 5 May 2017 08:54:28 +0000 (09:54 +0100)
commitc98f13a124a789626e062a9a7b574ade0088f471
tree8119ac65fe1df58b2fe34583523bbca7d9508027
parent913fc4ec705f608ae34a728e6954ab5d42b36181
x86/traps: Lift all non-entrypoint logic in entry_int82() up into C

This is more readable, maintainable, and livepatchable.

This involves declaring check_for_unexpected_msi(), untrusted_msi and
pv_hypercall() suitably for use by C.  While making these changes,
untrusted_msi is switched over to being a C99 bool.

No behavioural change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/x86/pv/Makefile
xen/arch/x86/pv/traps.c [new file with mode: 0644]
xen/arch/x86/x86_64/compat/entry.S
xen/drivers/passthrough/vtd/iommu.c
xen/include/asm-x86/apic.h
xen/include/asm-x86/hypercall.h
xen/include/asm-x86/iommu.h